import { config, request } from 'utils'

const { api } = config
const {
  loginAccount,
  loginCaptcha,
  loginOutUrl,
} = api

export async function fakeAccountLogin(params) {
  return request(loginAccount, {
    method: 'POST',
    data: params,
  });
}
export async function getFakeCaptcha(mobile) {
  return request(`${loginCaptcha}?mobile=${mobile}`);
}

export async function loginOut() {
  return request(loginOutUrl);
}
